package com.xiongwei.springcloud.dao;

import com.xiongwei.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author XiongWei
 * @date 2021/8/21
 */
@Mapper
@Repository
public interface DeptDao {

    public boolean addDept(Dept dept); //添加一个部门

    public Dept queryById(Long id); //根据id查询部门

    public List<Dept> queryAll(); //查询所有部门

}
